<?php

namespace LowCode\UI;

use LowCode\Support\JsExp;
use LowCode\Traits\HasDeprecatedChildren;
use LowCode\Traits\Props\HasHeight;
use LowCode\Traits\Props\HasWidth;

/**
 * @method static static make(array|JsExp $options = []) WChart组件
 */
class Chart extends Node
{
    use HasDeprecatedChildren;

    use HasWidth, HasHeight;

    public function __construct(array|JsExp $options = [])
    {
        parent::__construct("WChart");
        $this->options($options);
    }

    /**
     * @param array|JsExp $options
     * @return $this
     */
    public function options(array|JsExp $options): static
    {
        return $this->prop("options",$options);
    }
}
